package com.sl.biz.api;

import com.sl.biz.domain.request.JobAddRpcRequest;
import com.sl.biz.domain.request.JobPageParamRpcRequest;
import com.sl.biz.domain.request.JobUpdateByIdRpcRequest;
import com.sl.biz.domain.response.JobVO;
import com.sl.common.page.PageList;

import java.util.List;

public interface JobApi {

    PageList<JobVO> page(JobPageParamRpcRequest jobPageParamRpcRequest);

    boolean count(String beanName, String cron);

    boolean count(String beanName, String cron,String excludeId);

    String save(JobAddRpcRequest jobAddRpcRequest);

    boolean updateById(JobUpdateByIdRpcRequest jobUpdateByIdRpcRequest);

    boolean removeByIds(List<String> devJobIdList);

    JobVO getById(String id);

    boolean stopJob(String id);

    boolean runJob(String id);
}
